package collecion.nexd.com.newnexdcollection.application;

import android.app.Application;

import com.tencent.stat.StatConfig;
import com.tencent.stat.StatService;
import com.tencent.stat.common.StatConstants;

import example.com.nexd.collectionsdk.sdk.utils.Log;


/**
 * Created by xu on 2015/8/31.
 */
public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        try {
            StatConfig.setAutoExceptionCaught(true);
            StatConfig.setDebugEnable(true);
            StatConfig.setAppKey(this, "AB631QC6RDKQ");
            StatConfig.setInstallChannel(this, "private");
            StatService.startStatService(this, null, StatConstants.VERSION);
        } catch (Exception e) {
            Log.e("MTA 初始化失败");
            StatService.reportException(this, e);
            e.printStackTrace();
        }
    }
}
